Ext.define('BEST.view.dictionary.List',{
	extend:'Ext.tree.Panel',
	alias : 'widget.dictionarylist',
    store: 'DictionaryStore',
    title : '数据字典列表',
    initComponent: function() {
    	Ext.apply(this,{
    		animate:true,//展开折叠是否有动画特效
    		collapsible: false, //是否以折叠的方式展示
    		columnLines:true,//添加列边框
    		rowLines:true,
	        useArrows: true,  
	        rootVisible: false,  
	        multiSelect: true,  
        	singleExpand: true,
        	expanded : true,
    		columns:[
	    	{  
	            xtype: 'treecolumn', 
	            text: '数据字典名称',  
	            flex: 1,  
	            sortable: true,  
	            dataIndex: 'dtName'  
	        },{
	        	text:'数据字典编码',
	        	flex:1,
	        	dataIndex:'dtCode'
	        
	        },{
	        	text:'数据字典更新时间',
	        	flex:1,
	        	dataIndex:'updateTime'
	        
	        },{
	        	text:'数据字典状态',
	        	flex:1,
	        	dataIndex:'isDel',
	        	renderer:function(value){
            		if(value==1){
            			return "<span style='color:green'>是</span>";
            		}else{
            			return "<span style='color:red'>否</span>";
            		}
            	}
	        }]
	    	});
        this.callParent(arguments);
    }
	
})